import streamlit as st

st.date_input('birthday',value='today')
start_color,end_color = st.color_picker('start color'),st.color_picker('end color')
start_color1,end_color1 = st.select_slider('Select a range of color wavelength',
                                           options=['Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Indigo', 'Violet'],
                                           value=('Red', 'Blue'))
st.write(f'You selected wavelengths between {start_color1} and {end_color1}')

with st.form(key="form1"):
    st.date_input('birthday', value='today')
    start_color2, end_color2 = st.color_picker('start color'), st.color_picker('end color')
    start_color21, end_color21 = st.select_slider('Select a range of color wavelength',
                                                options=['Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Indigo',
                                                         'Violet'],
                                                value=('Red', 'Blue'))
    st.write(f'You selected wavelengths between {start_color21} and {end_color21}')

    button_submit = st.form_submit_button(label="Submit")
